package me.cat.learn1.test1;

public class StringDemo12 {
    public static void main(String[] args) {
        String talk = "你玩得很好,CNM,TMD";
        String[] arr = {"TMD","CNM","SB","CS"};
        for (int i = 0; i < arr.length; i++) {
            talk = talk.replace(arr[i],"***");
        }
        System.out.println(talk);
    }
}
